package com.xin.entity.crm;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;

import java.util.List;

/**
 * 权限信息
 */
@TableName("t_auth_permission")
public class PermissionEntity {

    /**
     * 权限id
     */
    @TableField("id")
    private Long id;


    /**
     * 权限名称
     */
    private String  name;

    /**
     * 权限url
     */
    private String url;



    /**
     * sn
     */
    private String sn;

    /**
     * 父权限
     */
    private Long parentId;


    @TableField(exist = false)
    private List<PermissionEntity> child;

    @TableField(exist = false)
    private String parentName;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public String getSn() {
        return sn;
    }

    public void setSn(String sn) {
        this.sn = sn;
    }

    public Long getParentId() {
        return parentId;
    }

    public void setParentId(Long parentId) {
        this.parentId = parentId;
    }

    public List<PermissionEntity> getChild() {
        return child;
    }

    public void setChild(List<PermissionEntity> child) {
        this.child = child;
    }

    public String getParentName() {
        return parentName;
    }

    public void setParentName(String parentName) {
        this.parentName = parentName;
    }
}
